<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>边框样式 | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../First/CSS/背景样式.html" />
    
    
    <link rel="prev" href="../../First/CSS/字体样式.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.2.2"
        data-chapter-title="边框样式"
        data-filepath="First/CSS/边框样式.md"
        data-basepath="../.."
        data-revision="Fri Sep 01 2017 15:03:43 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="First/HTML/html1.html">
            
                
                    <a href="../../First/HTML/html1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML5
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="First/HTML/example1.html">
            
                
                    <a href="../../First/HTML/example1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        列表之间的同素异性体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="First/HTML/example2.html">
            
                
                    <a href="../../First/HTML/example2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        常用标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="First/HTML/example3.html">
            
                
                    <a href="../../First/HTML/example3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="First/HTML/example4.html">
            
                
                    <a href="../../First/HTML/example4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        HTML5新增加的标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="First/HTML/example5.html">
            
                
                    <a href="../../First/HTML/example5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        实体字符和文本格式化
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="First/HTML/example6.html">
            
                
                    <a href="../../First/HTML/example6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        table标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="First/HTML/example7.html">
            
                
                    <a href="../../First/HTML/example7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        form表单与input输入框的运用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="First/HTML/example8.html">
            
                
                    <a href="../../First/HTML/example8.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        块级元素与内联元素的往事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="First/HTML/example9.html">
            
                
                    <a href="../../First/HTML/example9.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        零碎小知识
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="First/HTML/example10.html">
            
                
                    <a href="../../First/HTML/example10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        图像热区与内嵌框架iframe的趣事
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="First/HTML/content.html">
            
                
                    <a href="../../First/HTML/content.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        HTML5心得和总结
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="First/CSS/css1.html">
            
                
                    <a href="../../First/CSS/css1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="First/CSS/css.html">
            
                
                    <a href="../../First/CSS/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="First/CSS/通配选择器.html">
            
                
                    <a href="../../First/CSS/通配选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="First/CSS/元素选择器.html">
            
                
                    <a href="../../First/CSS/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="First/CSS/class选择器和id选择器.html">
            
                
                    <a href="../../First/CSS/class选择器和id选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        class选择器和id选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="First/CSS/关系选择器.html">
            
                
                    <a href="../../First/CSS/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="First/CSS/群组选择器.html">
            
                
                    <a href="../../First/CSS/群组选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="First/CSS/伪类选择器.html">
            
                
                    <a href="../../First/CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="First/CSS/属性选择器.html">
            
                
                    <a href="../../First/CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="First/CSS/伪对象选择器.html">
            
                
                    <a href="../../First/CSS/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.8.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="First/CSS/样式.html">
            
                
                    <a href="../../First/CSS/样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        CSS样式分类
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="First/CSS/字体样式.html">
            
                
                    <a href="../../First/CSS/字体样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.2.2" data-path="First/CSS/边框样式.html">
            
                
                    <a href="../../First/CSS/边框样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="First/CSS/背景样式.html">
            
                
                    <a href="../../First/CSS/背景样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="First/CSS/元素样式.html">
            
                
                    <a href="../../First/CSS/元素样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        元素样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="First/CSS/段落样式.html">
            
                
                    <a href="../../First/CSS/段落样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="First/CSS/浮动.html">
            
                
                    <a href="../../First/CSS/浮动.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="First/CSS/网页常见定位.html">
            
                
                    <a href="../../First/CSS/网页常见定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        网页常见定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.8" data-path="First/CSS/盒子模型.html">
            
                
                    <a href="../../First/CSS/盒子模型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.8.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="First/CSS/SCSS预处理.html">
            
                
                    <a href="../../First/CSS/SCSS预处理.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        sass预处理用法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="First/CSS/animate常见用法.html">
            
                
                    <a href="../../First/CSS/animate常见用法.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        animate动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="First/CSS/媒体查询.html">
            
                
                    <a href="../../First/CSS/媒体查询.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        媒体查询
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="First/CSS/Bootstrap框架栅格化系统.html">
            
                
                    <a href="../../First/CSS/Bootstrap框架栅格化系统.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        Bootstrap框架栅格化系统
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="First/CSS/flexbox弹性盒子.html">
            
                
                    <a href="../../First/CSS/flexbox弹性盒子.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        flexbox弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x8FB9;&#x6846;&#x6837;&#x5F0F;">&#x8FB9;&#x6846;&#x6837;&#x5F0F;</h1>
<h2 id="&#x8FB9;&#x6846;&#x7EBF;borderstyle">&#x8FB9;&#x6846;&#x7EBF;(border-style)</h2>
<p>&#x7ED9;&#x8FB9;&#x6846;&#x8BBE;&#x7F6E;&#x6837;&#x5F0F;</p>
<blockquote>
<p>&#x524D;&#x63D0;</p>
<ul>
<li>&#x5982;&#x679C;border-width&#x7B49;&#x4E8E;0&#xFF0C;&#x672C;&#x5C5E;&#x6027;&#x5C06;&#x5931;&#x53BB;&#x4F5C;&#x7528;</li>
</ul>
</blockquote>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border-style </span>:<span class="hljs-value"> <span class="hljs-function">none</span>(&#x65E0;&#x8FB9;&#x6846;) | <span class="hljs-function">hidden</span>(&#x9690;&#x85CF;&#x8FB9;&#x6846;)[IE7&#x53CA;&#x4EE5;&#x4E0B;&#x5C1A;&#x4E0D;&#x652F;&#x6301; ] | <span class="hljs-function">dotted</span>(&#x70B9;&#x72B6;&#x8FB9;&#x6846;) | <span class="hljs-function">dashed</span>(&#x865A;&#x7EBF;&#x8FB9;&#x6846;) | <span class="hljs-function">solid</span>(&#x5B9E;&#x7EBF;&#x8FB9;&#x6846;) | <span class="hljs-function">double</span>(&#x53CC;&#x7EBF;&#x8FB9;&#x6846;) | <span class="hljs-function">groove</span>(<span class="hljs-number">3</span>D&#x51F9;&#x69FD;&#x8FB9;&#x6846;) |
              <span class="hljs-function">ridge</span>(<span class="hljs-number">3</span>D&#x51F8;&#x69FD;&#x8FB9;&#x6846;) | <span class="hljs-function">inset</span>(<span class="hljs-number">3</span>D&#x51F9;&#x8FB9;&#x8FB9;&#x6846;)  | <span class="hljs-function">outset</span>(<span class="hljs-number">3</span>D&#x51F8;&#x8FB9;&#x8F6E;&#x5ED3;)
</span></span></code></pre>
<p>&#x517C;&#x5BB9;&#x6027;: IE6.0+, Firefox2.0+, Chrome4.0+, Safari6.0+, Opera15.0+</p>
<blockquote>
<p>&#x76F8;&#x5173;&#x5C5E;&#x6027;:</p>
<ul>
<li><code>border-top-style</code>     &#x8BBE;&#x7F6E;&#x4E0A;&#x8FB9;&#x6846;&#x7EBF;</li>
<li><code>border-bottom-style</code>     &#x8BBE;&#x7F6E;&#x4E0B;&#x8FB9;&#x6846;&#x7EBF;</li>
<li><code>border-left-style</code>    &#x8BBE;&#x7F6E;&#x5DE6;&#x8FB9;&#x6846;&#x7EBF;</li>
<li><code>border-right-style</code>     &#x8BBE;&#x7F6E;&#x53F3;&#x8FB9;&#x6846;&#x7EBF;    (<strong>&#x5E38;&#x7528;&#x4E0E;&#x5BFC;&#x822A;&#x680F;&#x5229;&#x7528;&#x53F3;&#x8FB9;&#x6846;&#x76F8;&#x9694;&#x7684;&#x65F6;&#x5019;</strong>)</li>
</ul>
</blockquote>
<h2 id="&#x8FB9;&#x6846;&#x5BBD;&#x5EA6;borderwidth">&#x8FB9;&#x6846;&#x5BBD;&#x5EA6;(border-width)</h2>
<p>&#x5B9A;&#x4E49;&#x8FB9;&#x6846;&#x7684;&#x7C97;&#x7EC6;</p>
<blockquote>
<p>&#x5982;&#x679C;border-style&#x8BBE;&#x7F6E;&#x4E3A;none&#x6216;hidden&#xFF0C;border-width&#x7684;&#x4F7F;&#x7528;&#x503C;&#x5C06;&#x4E3A;0</p>
</blockquote>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border-width </span>:<span class="hljs-value"> <span class="hljs-function">medium</span>(<span class="hljs-number">3px</span>) | <span class="hljs-function">thin</span>(<span class="hljs-number">1px</span>) | <span class="hljs-function">thick</span>(<span class="hljs-number">5px</span>) | <span class="hljs-function">length</span>(&#x4EFB;&#x610F;px,&#x4E0D;&#x5141;&#x8BB8;&#x8D1F;&#x503C;)
</span></span></code></pre>
<p>&#x517C;&#x5BB9;&#x6027;: IE6.0+, Firefox2.0+, Chrome4.0+, Safari6.0+, Opera15.0+</p>
<blockquote>
<p>&#x76F8;&#x5173;&#x5C5E;&#x6027;:</p>
<ul>
<li><code>border-top-width</code>         &#x8BBE;&#x7F6E;&#x4E0A;&#x8FB9;&#x6846;&#x5BBD;&#x5EA6;</li>
<li><code>border-bottom-width</code>     &#x8BBE;&#x7F6E;&#x4E0B;&#x8FB9;&#x6846;&#x5BBD;&#x5EA6;</li>
<li><code>border-left-width</code>         &#x8BBE;&#x7F6E;&#x5DE6;&#x8FB9;&#x6846;&#x5BBD;&#x5EA6;</li>
<li><code>border-right-width</code>         &#x8BBE;&#x7F6E;&#x53F3;&#x8FB9;&#x6846;&#x5BBD;&#x5EA6;</li>
</ul>
</blockquote>
<h2 id="&#x8FB9;&#x6846;&#x6837;&#x5F0F;&#x7F29;&#x5199;">&#x8FB9;&#x6846;&#x6837;&#x5F0F;&#x7F29;&#x5199;</h2>
<blockquote>
<p>&#x987A;&#x5E8F;&#x53EF;&#x53D8;&#x6362;</p>
</blockquote>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border</span>:<span class="hljs-value">&#x8FB9;&#x6846;&#x5BBD;&#x5EA6;  &#x8FB9;&#x6846;&#x7EBF; &#x8FB9;&#x6846;&#x989C;&#x8272;</span></span>;
</code></pre>
<h2 id="&#x8FB9;&#x6846;&#x989C;&#x8272;bordercolor">&#x8FB9;&#x6846;&#x989C;&#x8272;(border-color)</h2>
<p>&#x5B9A;&#x4E49;&#x8FB9;&#x6846;&#x989C;&#x8272;</p>
<blockquote>
<p>&#x5982;&#x679C;border-width&#x7B49;&#x4E8E;0&#x6216;border-style&#x8BBE;&#x7F6E;&#x4E3A;none&#xFF0C;&#x672C;&#x5C5E;&#x6027;&#x5C06;&#x88AB;&#x5FFD;&#x7565;</p>
</blockquote>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border-color</span>:<span class="hljs-value">color</span></span>;
</code></pre>
<p>&#x517C;&#x5BB9;&#x6027;:IE6.0+, Firefox2.0+, Chrome4.0+, Safari6.0+, Opera15.0+</p>
<blockquote>
<p>&#x76F8;&#x5173;&#x5C5E;&#x6027;:</p>
<ul>
<li><code>border-top-color</code>         &#x8BBE;&#x7F6E;&#x4E0A;&#x8FB9;&#x6846;&#x989C;&#x8272;</li>
<li><code>border-bottom-color</code>    &#x8BBE;&#x7F6E;&#x4E0B;&#x8FB9;&#x6846;&#x989C;&#x8272;</li>
<li><code>border-left-color</code>         &#x8BBE;&#x7F6E;&#x5DE6;&#x8FB9;&#x6846;&#x989C;&#x8272;</li>
<li><code>border-right-color</code>         &#x8BBE;&#x7F6E;&#x53F3;&#x8FB9;&#x6846;&#x989C;&#x8272;</li>
</ul>
</blockquote>
<h2 id="&#x8FB9;&#x6846;&#x56FE;&#x7247;borderimage">&#x8FB9;&#x6846;&#x56FE;&#x7247;(border-image)</h2>
<p>&#x517C;&#x5BB9;&#x6027;:IE6.0+, Firefox2.0+, Chrome4.0+, Safari6.0+, Opera15.0+</p>
<pre><code class="lang-css">    border-image&#xFF1A;&lt;&apos; border-image-source &apos;&gt;(&#x56FE;&#x7247;&#x8DEF;&#x5F84;) || 
        &lt;&apos; border-image-slice(&#x5BF9;&#x8C61;&#x7684;&#x8FB9;&#x6846;&#x80CC;&#x666F;&#x56FE;&#x7684;&#x5206;&#x5272;&#x65B9;&#x5F0F;) &apos;&gt; [ / &lt;&apos; border-image-width(&#x8FB9;&#x6846;&#x56FE;&#x7247;&#x7684;&#x5BBD;&#x5EA6;) &apos;&gt; | 
        / &lt;&apos; border-image-width &apos;&gt;? / &lt;&apos; border-image-outset(&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x7684;&#x8FB9;&#x6846;&#x80CC;&#x666F;&#x56FE;&#x7684;&#x6269;&#x5C55;) &apos;&gt; ]? || &lt;&apos; border-image-repeat(&#x68C0;&#x7D22;&#x5BF9;&#x8C61;&#x7684;&#x8FB9;&#x6846;&#x56FE;&#x50CF;&#x7684;&#x5E73;&#x94FA;&#x65B9;&#x5F0F;)&apos;&gt;
</code></pre>
<p>&#x683C;&#x5F0F;:</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border-image</span>:<span class="hljs-value">&#x56FE;&#x7247;&#x8DEF;&#x5F84;  &#x56FE;&#x7247;&#x7684;&#x5BBD;&#x9AD8;&#x7684;&#x7B49;&#x5206;   &#x62C9;&#x4F38;&#x65B9;&#x5F0F;
</span></span></code></pre>
<blockquote>
<p>&#x6CE8;&#x610F;:</p>
<ul>
<li>&#x8BBE;&#x7F6E;&#x4E86;border-image&#x4E4B;&#x540E;&#xFF0C;border-style&#x5219;&#x4E0D;&#x663E;&#x793A;</li>
<li><code>border-image-outset</code>&#x8BE5;&#x5C5E;&#x6027;&#x7528;&#x4E8E;&#x6307;&#x5B9A;&#x8FB9;&#x6846;&#x56FE;&#x50CF;&#x5411;&#x5916;&#x6269;&#x5C55;&#x6240;&#x5B9A;&#x4E49;&#x7684;&#x6570;&#x503C;&#xFF0C;&#x5373;&#x5982;&#x679C;&#x503C;&#x4E3A;10px&#xFF0C;&#x5219;&#x56FE;&#x50CF;&#x5728;&#x539F;&#x672C;&#x7684;&#x57FA;&#x7840;&#x4E0A;&#x5F80;&#x5916;&#x5EF6;&#x5C55;10px&#x518D;&#x663E;&#x793A;&#x3002;</li>
<li><code>border-image-slice</code>&#x4E0D;&#x61C2;</li>
</ul>
<p><code>border-image-repeat</code>&#x5C5E;&#x6027;&#x503C;&#x6709;</p>
<ul>
<li>stretch&#xFF1A; &#x6307;&#x5B9A;&#x7528;&#x62C9;&#x4F38;&#x65B9;&#x5F0F;&#x6765;&#x586B;&#x5145;&#x8FB9;&#x6846;&#x80CC;&#x666F;&#x56FE;&#x3002; </li>
<li>repeat&#xFF1A; &#x6307;&#x5B9A;&#x7528;&#x5E73;&#x94FA;&#x65B9;&#x5F0F;&#x6765;&#x586B;&#x5145;&#x8FB9;&#x6846;&#x80CC;&#x666F;&#x56FE;&#x3002;&#x5F53;&#x56FE;&#x7247;&#x78B0;&#x5230;&#x8FB9;&#x754C;&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x8D85;&#x8FC7;&#x5219;&#x88AB;&#x622A;&#x65AD;&#x3002;(&#x66B4;&#x529B;&#x5E73;&#x94FA;) </li>
<li>round&#xFF1A; &#x6307;&#x5B9A;&#x7528;&#x5E73;&#x94FA;&#x65B9;&#x5F0F;&#x6765;&#x586B;&#x5145;&#x8FB9;&#x6846;&#x80CC;&#x666F;&#x56FE;&#x3002;&#x56FE;&#x7247;&#x4F1A;&#x6839;&#x636E;&#x8FB9;&#x6846;&#x7684;&#x5C3A;&#x5BF8;&#x52A8;&#x6001;&#x8C03;&#x6574;&#x56FE;&#x7247;&#x7684;&#x5927;&#x5C0F;&#x76F4;&#x81F3;&#x6B63;&#x597D;&#x53EF;&#x4EE5;&#x94FA;&#x6EE1;&#x6574;&#x4E2A;&#x8FB9;&#x6846;&#x3002;(&#x4F18;&#x96C5;&#x5E73;&#x94FA;) </li>
<li>space&#xFF1A; &#x6307;&#x5B9A;&#x7528;&#x5E73;&#x94FA;&#x65B9;&#x5F0F;&#x6765;&#x586B;&#x5145;&#x8FB9;&#x6846;&#x80CC;&#x666F;&#x56FE;&#x3002;&#x56FE;&#x7247;&#x4F1A;&#x6839;&#x636E;&#x8FB9;&#x6846;&#x7684;&#x5C3A;&#x5BF8;&#x52A8;&#x6001;&#x8C03;&#x6574;&#x56FE;&#x7247;&#x7684;&#x4E4B;&#x95F4;&#x7684;&#x95F4;&#x8DDD;&#x76F4;&#x81F3;&#x6B63;&#x597D;&#x53EF;&#x4EE5;&#x94FA;&#x6EE1;&#x6574;&#x4E2A;&#x8FB9;&#x6846;</li>
</ul>
</blockquote>
<h2 id="&#x8FB9;&#x6846;&#x5706;&#x89D2;&#x6548;&#x679C;-borderradius">&#x8FB9;&#x6846;&#x5706;&#x89D2;&#x6548;&#x679C; (border-radius)</h2>
<p>&#x5411;&#x5143;&#x7D20;&#x6DFB;&#x52A0;&#x5706;&#x89D2;&#x8FB9;&#x6846;</p>
<blockquote>
<p>&#x4E00;&#x822C;&#x53EF;&#x4EE5;&#x53D6;1&#xFF0C;2&#xFF0C;3&#xFF0C;4&#x4E2A;&#x503C;</p>
</blockquote>
<p>1.&#x5F53;&#x53D6;&#x4E00;&#x4E2A;&#x503C;&#x7684;&#x65F6;&#x5019;,&#x4EE3;&#x8868;&#x6240;&#x6709;&#x8FB9;&#x6846;&#x5706;&#x89D2;&#x90FD;&#x4E3A;&#x8FD9;&#x4E2A;&#x503C;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border-radius</span>:<span class="hljs-value"><span class="hljs-number">10px</span></span></span>;
</code></pre>
<p>2.&#x5F53;&#x53D6;2&#x4E2A;&#x503C;&#x65F6;&#xFF0C;&#x4EE3;&#x8868;&#x7B2C;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#x5DE6;&#xFF0C;&#x4E0B;&#x53F3;.&#x7B2C;&#x4E8C;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#x53F3;&#xFF0C;&#x4E0B;&#x5DE6;.</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border-radius</span>:<span class="hljs-value"><span class="hljs-number">10px</span> <span class="hljs-number">20px</span></span></span>;
</code></pre>
<p>3.&#x5F53;&#x53D6;3&#x4E2A;&#x503C;&#x65F6;&#xFF0C;&#x4EE3;&#x8868;&#x7B2C;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#x5DE6;&#xFF0C;&#x7B2C;&#x4E8C;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#x53F3; &#x548C; &#x4E0B;&#x5DE6;&#xFF0C;&#x7B2C;&#x4E09;&#x4E2A;&#x7528;&#x4E8E;&#x4E0B;&#x53F3;&#x3002; </p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border-radius</span>:<span class="hljs-value"><span class="hljs-number">10px</span> <span class="hljs-number">20px</span> <span class="hljs-number">30px</span></span></span>;
</code></pre>
<p>4.&#x5F53;&#x53D6;&#x56DB;&#x4E2A;&#x503C;&#x65F6;&#xFF0C;&#x4EE3;&#x8868;&#x7B2C;&#x4E00;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#x5DE6;&#x3001;&#x7B2C;&#x4E8C;&#x4E2A;&#x7528;&#x4E8E;&#x4E0A;&#x53F3;&#x3001;&#x7B2C;&#x4E09;&#x4E2A;&#x7528;&#x4E8E;&#x4E0B;&#x53F3;&#x3001;&#x7B2C;&#x56DB;&#x4E2A;&#x7528;&#x4E8E;&#x4E0B;&#x5DE6; &#xFF0C;&#x6309;&#x987A;&#x65F6;&#x9488;&#x8F6C;&#x3002;</p>
<pre><code class="lang-css">    <span class="hljs-rule"><span class="hljs-attribute">border-radius</span>:<span class="hljs-value"><span class="hljs-number">10px</span> <span class="hljs-number">20px</span> <span class="hljs-number">30px</span> <span class="hljs-number">40px</span></span></span>;
</code></pre>
<blockquote>
<p>&#x5F53;&#x53D6;&#x503C;&#x4E3A;&#x767E;&#x5206;&#x6BD4;&#x65F6;&#x662F;&#x600E;&#x4E48;&#x53D6;&#x503C;&#x7684;???</p>
<ul>
<li>&#x5F53;&#x5BB9;&#x5668;&#x4E3A;&#x6B63;&#x65B9;&#x5F62;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x53D6;50%&#x7684;&#x5706;&#x89D2;&#xFF0C;&#x8FD9;&#x6837;&#x5C31;&#x53EF;&#x4EE5;&#x53D8;&#x6210;&#x5706;.</li>
</ul>
</blockquote>
<h2 id="&#x8FB9;&#x6846;&#x5236;&#x4F5C;&#x4E09;&#x89D2;&#x5F62;">&#x8FB9;&#x6846;&#x5236;&#x4F5C;&#x4E09;&#x89D2;&#x5F62;</h2>
<pre><code class="lang-css">    <span class="hljs-comment">/*
            &#x8FB9;&#x6846;&#x5236;&#x4F5C;&#x4E09;&#x89D2;&#x5F62;
                     1.&#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x5927;&#x5C0F;&#x4E3A;0

             * */</span>
            <span class="hljs-class">.test</span><span class="hljs-rules">{
                <span class="hljs-rule"><span class="hljs-attribute">width</span>:<span class="hljs-value"> <span class="hljs-number">0px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">height</span>:<span class="hljs-value"> <span class="hljs-number">0px</span></span></span>;

                <span class="hljs-comment">/*
                 2.&#x6BCF;&#x4E2A;&#x4E09;&#x89D2;&#x5F62;&#x90FD;&#x662F;&#x6709;&#x4E09;&#x6761;&#x76F8;&#x90BB;&#x7684;&#x8FB9;&#x7EC4;&#x6210;,&#x6839;&#x636E;&#x6211;&#x4EEC;&#x8981;&#x753B;&#x7684;&#x4E09;&#x89D2;&#x5F62;
                 &#x7684;&#x65B9;&#x5411;&#xFF0C;&#x6765;&#x51B3;&#x5B9A;&#x7528;&#x54EA;&#x6761;&#x8FB9;&#x4F5C;&#x4E3A;&#x4E3B;&#x8FB9;&#x3002;

                 * */</span>

                <span class="hljs-rule"><span class="hljs-attribute">border-bottom</span>:<span class="hljs-value">skyblue  solid <span class="hljs-number">100px</span> </span></span>;

                <span class="hljs-comment">/*
                     3.&#x53E6;&#x5916;&#x76F8;&#x90BB;&#x7684;&#x4FE9;&#x6761;&#x8FB9;&#xFF0C;&#x5C31;&#x662F;&#x6253;&#x8F85;&#x52A9;&#xFF0C;&#x8BBE;&#x7F6E;&#x4E3A;&#x900F;&#x660E;&#xFF0C;
                     &#x5E76;&#x4E14;&#x901A;&#x8FC7;&#x8FD9;&#x4E24;&#x6761;&#x8FB9;&#xFF0C;&#x6765;&#x51B3;&#x5B9A;&#x4E09;&#x89D2;&#x5F62;&#x7684;&#x5BBD;&#x5EA6;

                 * */</span>

                <span class="hljs-rule"><span class="hljs-attribute">border-left</span>:<span class="hljs-value"> <span class="hljs-hexcolor">#FF0000</span> solid <span class="hljs-number">50px</span></span></span>;
                <span class="hljs-rule"><span class="hljs-attribute">border-right</span>:<span class="hljs-value"> <span class="hljs-hexcolor">#FF0000</span> solid <span class="hljs-number">50px</span></span></span>;
</span></code></pre>
<blockquote>
<p>&#x4E09;&#x90E8;&#x66F2;</p>
<ol>
<li>&#x8BBE;&#x7F6E;&#x5BB9;&#x5668;&#x5927;&#x5C0F;&#x4E3A;0</li>
<li>&#x6BCF;&#x4E2A;&#x4E09;&#x89D2;&#x5F62;&#x90FD;&#x662F;&#x6709;&#x4E09;&#x6761;&#x76F8;&#x90BB;&#x7684;&#x8FB9;&#x7EC4;&#x6210;,&#x6839;&#x636E;&#x6211;&#x4EEC;&#x8981;&#x753B;&#x7684;&#x4E09;&#x89D2;&#x5F62;&#x7684;&#x65B9;&#x5411;&#xFF0C;&#x6765;&#x51B3;&#x5B9A;&#x7528;&#x54EA;&#x6761;&#x8FB9;&#x4F5C;&#x4E3A;&#x4E3B;&#x8FB9;&#x3002;</li>
<li>&#x53E6;&#x5916;&#x76F8;&#x90BB;&#x7684;&#x4FE9;&#x6761;&#x8FB9;&#xFF0C;&#x5C31;&#x662F;&#x6253;&#x8F85;&#x52A9;&#xFF0C;&#x8BBE;&#x7F6E;&#x4E3A;&#x900F;&#x660E;&#xFF0C;&#x5E76;&#x4E14;&#x901A;&#x8FC7;&#x8FD9;&#x4E24;&#x6761;&#x8FB9;&#xFF0C;&#x6765;&#x51B3;&#x5B9A;&#x4E09;&#x89D2;&#x5F62;&#x7684;&#x5BBD;&#x5EA6;</li>
</ol>
</blockquote>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../First/CSS/字体样式.html" class="navigation navigation-prev " aria-label="Previous page: 字体样式"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../First/CSS/背景样式.html" class="navigation navigation-next " aria-label="Next page: 背景样式"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-small":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
